package com.zr.Inquiry.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zr.utils.ErrorMessage;
import com.zr.utils.PageVo;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.Date;
import java.util.List;

/**
 * @ClassName InquiryTotalVo
 * @Description TODO
 * @Author xiaowei
 * @Date 2019/12/28 11:23
 * @Version 1.0
 */
@Data
public class InquiryTotalVo   {
    private Integer id;
    private String requestForQuotationId;//询价单号
    private Integer currencyCode;
    private String currencyCodeName;
    private Integer inquiryStatus;
    private String inquiryStatusName;
    private Integer legalPersonId;
    private String legalPersonName;
    private Integer type;
    private String typeName;
    private Integer isTax;
    private String isTaxName;
    @JsonFormat(pattern="yyyy-MM-dd ",timezone = "Asia/Shanghai")
    private Date startTime;
    @JsonFormat(pattern="yyyy-MM-dd ",timezone = "Asia/Shanghai")
    private Date endTime;
    private String creatorName;
    private String updateName;
    @JsonFormat(pattern="yyyy-MM-dd ",timezone = "Asia/Shanghai")
    private Date updateTime;
    @JsonFormat(pattern="yyyy-MM-dd ",timezone = "Asia/Shanghai")
    private Date createTime;
    @Valid
    @NotEmpty(message = ErrorMessage.INQUIRYSPAREVOLISTISNOT)
    private List<InquirySpareVo> inquiryDetailsList;//备件
    @NotEmpty(message = ErrorMessage.INQUIRYSUPPLIERVOLISTISNOT)
    @Valid
    private List<InquirySupplierVo> supplierDetailsList;//供应商
}
